<extend name="Index/index" />
<!--contact-->
<block name="main">
    <!-- <{:dump($_SESSION)}> -->
    <div>
        <h2 style="text-align:center;line-height:80px;">个人中心</h2>
    </div><br>
    <div class="container">
        <div class="row">
            <div class="col-sm-1 col-md-2 main-sidebar">
                <div class="view3">
                    <div class="card sidebar-nav">
                        <ul class="nav">
                            <li class="is-current">
                                <a href="<{:U('Personal/index')}>"><span class="icon icon-user nav-icon"></span><br>
                                <span class="nav-title">个人信息</span></a>
                            </li>

                            <li>
                                <a href="<{:U('Personal/avatar')}>"><span class="icon icon-eye nav-icon"></span><br>
                                <span class="nav-title">修改头像</span></a>
                            </li>

                            <li>
                                <a href="<{:U('Personal/security')}>"><span class="icon icon-lock2 nav-icon"></span><br>
                                <span class="nav-title">安全设置</span></a>
                            </li>

                            <li>
                                <a href="<{:U('Collect/index')}>"><span class="icon icon-th-stroke nav-icon"></span><br><span class="nav-title">我的收藏</span></a>
                            </li>

                            <li>
                                <a href="<{:U('PersonOrders/index')}>"><span class="icon icon-switch nav-icon"></span><br>
                                <span class="nav-title">我的订单</span></a>
                            </li>

                            <li>
                                <a href="<{:U('Comment/index')}>"><span class="icon icon-switch nav-icon"></span><br>
                                <span class="nav-title">我的评论</span></a>
                            </li>

                        </ul>
                    </div><!--END sidebar-nav -->
                </div>
            </div>
            <!-- *********************************************** -->
            <div class="col-sm-10 col-md-8 main-content">
                <div class="layer">
                    <div class="view5 is-loaded">
                        <div class="card profile-manager">
                            <div class="card-content">
                                <form action="<{:U('Personal/doedit')}>" method="post">
                                    原密码：
                                    <input type="password" name="opwd" required><br><br>
                                    新密码：
                                        <input type="password" name="pwd" required><br><br>
                                    确认密码：
                                        <input type="password" name="repwd" required><br><br>
                                        <input type="text" name="code" required><a id="code" style="cursor:pointer">获取短信验证码</a><br><br>
                                    <button class="btn-warning">确认修改</button>
                                </form>
                            </div>
                        </div>
                    </div><!-- END view5-->
                </div><!-- END layer-->
            </div>
        </div><!--END row-->
    </div><!--END container-->
    <script src="__PUBLIC__/Js/jquery-1.8.3.min.js"></script>
    <script>
        $("#code").click(function(){
            // alert("aaaa");
                $.ajax({
                    type:'get',
                    url:"<{:U('Personal/seepwd')}>",
                    dataType:'json',
                    success:function(data){
                        console.log(data);
                        alert("验证码已发送");
                    },
                });
                return false;
            });
    </script>
</block>